<template>
  <div>
    <div class="title">周末去哪儿</div>
    <div class="item" v-for="item of weekendList" :key="item.id">
      <img class="item-img" :src="item.imgUrl">
      <div class="item-title">{{item.title}}</div>
      <div class="item-desc">{{item.desc}}</div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  },
  data () {
    return {

    }
  },
  methods: {

  }
}

</script>

<style lang="stylus" scoped>
  .title
    background: #eee
    line-height: 2rem
    padding-left: .5rem
  .item
    overflow: hidden
    margin-bottom: 1rem
    display: flex
    flex-direction: column
    .item-img
      width: 100%
    .item-title
      padding-left: .5rem
      margin-top: .3rem
    .item-desc
      margin-left: .5rem
      font-size: .9rem

</style>







